package com.example.springboot.service;

import com.example.springboot.entity.SysRole;

import java.util.List;

/**
 * @Author: jyf2000jyf
 * @Date: 2022/5/3
 * @Time: 15:01
 * @Email: 904593011@qq.com
 * @Description:
 **/
public interface RoleService {

    Integer save(SysRole role);

    List<SysRole> findAll();

    Integer delete(Integer id);

    List<SysRole> findAll(Integer pageNum, Integer pageSize);

    Integer getAmount();

    void saveBatch(List<SysRole> roles);

    void setRoleMenu(Integer roleId, List<Integer> menuIds);

    List<Integer> getRoleMenu(Integer roleId);
}
